package com.rqian.spring.profile.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.rqian.spring.profile.bean.LoginUser;

/**
 * 
 * Handles requests for the application home page.
 * 
 * @author: rqian
 * @version: 1.0, Apr 26, 2012
 */
@Controller
public class HomeController {

	@RequestMapping(value = "/welcome.do", method = RequestMethod.GET)
	public ModelAndView getIndexPage(Model model) {
		model.addAttribute("loginUser", new LoginUser());
		return new ModelAndView("welcome");
	}

}
